/*----------------------------------------------------------------------------------*/
/*!
 * @file utils.c
 * @brief Verschiedene kleine Funktionen (Header File)
 * @author Steff
 *
 */
/*------------------------------------------------------------------------------------

REVISION CONTROL:
$Id: utils.h,v 1.3 2006/08/12 18:06:19 steffmeister Exp $
$ProjectName: $
$ProjectRevision: $

UPDATE:
$Log: utils.h,v $
Revision 1.3  2006/08/12 18:06:19  steffmeister
Optimierung, Anpassung der Kommentare

Revision 1.1  2006/08/12 19:43:41  steff
*** empty log message ***


------------------------------------------------------------------------------------*/

#ifndef UTILS_H_
#define UTILS_H_

/* waitForKey needs SDL */
#include <SDL/SDL.h>
#include "scro.hxx"
#include <SDL/SDL_gfxPrimitives.h>

char stringCopyN(char *string2, char *string1, int start, int end);
char removeNewlineFromString(char *string);
int getCleanExecPath(char *pathAndExec);
void waitForKey(SDLKey key);
void clear_array(unsigned int * array, unsigned int length);
void fade_sdl_surface(SDL_Surface * target_surface, unsigned int degree);

void endianSwap(unsigned short& x);
void endianSwap(unsigned int& x);
/*
inline void endianSwap(unsigned long& x);
*/
#endif
